package com.qfedu.fmmll.submit.service.feign;

import com.qfedu.fmmall.entity.ProductSku;
import com.qfedu.fmmll.submit.service.fallback.StockUpdateFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;

/**
 * @author : yanBin
 * @date :2022/2/10 17:12
 */
@Repository
@FeignClient(value = "stock-update", fallback = StockUpdateFallback.class)
public interface StockUpdateClient {
    @PutMapping("/stock/update")
    int update(@RequestBody List<ProductSku> productSkuList);
}
